
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of SVCSTATUS.CGI</TITLE>
</HEAD><BODY>
<H1>SVCSTATUS.CGI</H1>
Section: User Commands  (1)<BR>Updated: Version 4.3.13:  7 Jan 2014<BR><A HREF="#index">Index</A>
<A HREF="../index.html">Return to Main Contents</A><HR>

<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>

svcstatus.cgi - CGI program to view Xymon status logs
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>

<B>svcstatus.cgi [--historical] [--history={top|bottom}]</B>

<P>
<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>

<B>svcstatus.cgi</B>
is a CGI program to present a Xymon status log in HTML 
form (ie, as a web page). It can be used both for the logs
showing the current status, and for historical logs from the
&quot;histlogs&quot; directory. It is normally invoked as a
CGI program, and therefore receives most of the input parameters
via the CGI QUERY_STRING environment variable.
<P>
Unless the &quot;--historical&quot; option is present, the current status log
is used. This assumes a QUERY_STRING environment variable of the form
<BR>

<BR>&nbsp;&nbsp;&nbsp;HOSTSVC=hostname.servicename
<BR>

where &quot;hostname&quot; is the name of the host with commas instead of dots,
and &quot;servicename&quot; is the name of the service (the column name in Xymon). 
Such links are automatically generated by the
<I><A HREF="../man1/xymongen.1.html">xymongen</A>(1)</I>

tool when the environment contains &quot;XYMONLOGSTATUS=dynamic&quot;.
<P>
With the &quot;--historical&quot; option present, a historical logfile is
used. This assumes a QUERY_STRING environment variable of the form
<BR>

<BR>&nbsp;&nbsp;&nbsp;HOST=hostname&amp;SERVICE=servicename&amp;TIMEBUF=timestamp
<BR>

where &quot;hostname&quot; is the name of the host with commas instead of dots,
&quot;servicename&quot; is the name of the service, and &quot;timestamp&quot; is the time
of the log. This is automatically generated by the
<I><A HREF="../man1/history.cgi.1.html">history.cgi</A>(1)</I>

tool.
<P>
<A NAME="lbAE">&nbsp;</A>
<H2>OPTIONS</H2>

<DL COMPACT>
<DT>--historical<DD>
Use a historical logfile instead of the current logfile.
<P>
<DT>--history={top|bottom|none}<DD>
When showing the current logfile, provide a &quot;HISTORY&quot; button
at the top or the bottom of the webpage, or not at all. The default 
is to put the HISTORY button at the bottom of the page.
<P>
<DT>--env=FILENAME<DD>
Load the environment from FILENAME before executing the CGI.
<P>
<DT>--templates=DIRECTORY<DD>
Where to look for the HTML header- and footer-templates used
when generating the webpages. Default: $XYMONHOME/web/
<P>
<DT>--no-svcid<DD>
Do not include the HTML tags to identify the hostname/service
on the generated web page. Useful is this already happens in 
the hostsvc_header template file, for instance.
<P>
<DT>--multigraphs=TEST1[,TEST2]<DD>
This causes svcstatus.cgi to generate links to service graphs 
that are split up into multiple images, with at most 5 graphs
per image. This option only works in Xymon mode. If not
specified, only the &quot;disk&quot; status is split up this way.
<P>
<DT>--no-disable<DD>
By default, the info-column page includes a form allowing users 
to disable and re-enable tests. If your setup uses the default
separation of administration tools into a separate, password-
protected area, then use of the disable- and enable-functions
requires access to the administration tools. If you prefer to 
do this only via the dedicated administration page, this option
will remove the disable-function from the info page.
<P>
<DT>--no-jsvalidation<DD>
The disable-function on the info-column page by default uses
JavaScript to validate the form before submitting the input
to the Xymon server. However, some browsers cannot handle the
Javascript code correctly so the form does not work. This 
option disables the use of Javascript for form-validation,
allowing these browsers to use the disable-function.
<P>
<DT>--nkconfig=FILENAME<DD>
Use FILENAME as the configuration file for the Critical 
Systems information. The default is to load this from
$XYMONHOME/etc/critical.cfg
<P>
</DL>
<A NAME="lbAF">&nbsp;</A>
<H2>FILES</H2>

<DL COMPACT>
<DT>$XYMONHOME/web/hostsvc_header<DD>
HTML template header
<P>
<DT>$XYMONHOME/web/hostsvc_footer<DD>
HTML template footer
<P>
</DL>
<A NAME="lbAG">&nbsp;</A>
<H2>ENVIRONMENT</H2>

<DL COMPACT>
<DT>NONHISTS=info,trends,graphs<DD>
A comma-separated list of services that does not have meaningful
history, e.g. the &quot;info&quot; and &quot;trends&quot; columns. Services listed here
do not get a &quot;History&quot; button.
<P>
<DT>TEST2RRD=test,test<DD>
A comma-separated list of the tests that have an RRD graph.
<P>
</DL>
<A NAME="lbAH">&nbsp;</A>
<H2>SEE ALSO</H2>

<A HREF="../man7/xymon.7.html">xymon</A>(7), <A HREF="../man1/xymond.1.html">xymond</A>(1)
<P>
<P>

<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT><A HREF="#lbAB">NAME</A><DD>
<DT><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT><A HREF="#lbAD">DESCRIPTION</A><DD>
<DT><A HREF="#lbAE">OPTIONS</A><DD>
<DT><A HREF="#lbAF">FILES</A><DD>
<DT><A HREF="#lbAG">ENVIRONMENT</A><DD>
<DT><A HREF="#lbAH">SEE ALSO</A><DD>
</DL>
<HR>
This document was created by
<A HREF="/cgi-bin/man/man2html">man2html</A>,
using the manual pages.<BR>
Time: 09:25:35 GMT, January 07, 2014
</BODY>
</HTML>
